package com.fashion.server.dao;

import com.fashion.server.dao.read.RIdentityOfficialMapper;
import com.fashion.server.dao.read.RWebUserIdentityMapper;
import com.fashion.server.dao.read.RWebUserMapper;
import com.fashion.server.dao.write.WIdentityOfficialMapper;
import com.fashion.server.dao.write.WWebUserIdentityMapper;
import com.fashion.server.dao.write.WWebUserMapper;

import javax.annotation.Resource;

/**
 * DB操作Mapper工厂类定义，可以获取到所有的数据库操作对象
 * @author WangXin
 * 
 */

public class MapperFactory {

    @Resource
    private RWebUserMapper rWebUserMapper;

    @Resource
    private WWebUserMapper wWebUserMapper;

    @Resource
    private RIdentityOfficialMapper rIdentityOfficialMapper;

    @Resource
    private WIdentityOfficialMapper wIdentityOfficialMapper;

    @Resource
    private WWebUserIdentityMapper wWebUserIdentityMapper;

    @Resource
    private RWebUserIdentityMapper rWebUserIdentityMapper;


    public RWebUserMapper getReadWebUserMapper() {
        return rWebUserMapper;
    }

    public WWebUserMapper getWriteWebUserMapper() {
        return wWebUserMapper;
    }

    public RIdentityOfficialMapper getReadIdentityOfficialMapper() {
        return rIdentityOfficialMapper;
    }

    public WIdentityOfficialMapper getWriteIdentityOfficialMapper() {
        return wIdentityOfficialMapper;
    }

    public WWebUserIdentityMapper getWriteWebUserIdentityMapper() {
        return wWebUserIdentityMapper;
    }

    public RWebUserIdentityMapper getrWebUserIdentityMapper() {
        return rWebUserIdentityMapper;
    }


}
